package com.xiaohong.mq.feign;

import com.xiaohong.mq.pojo.SendMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : xiaohong
 * @date : 2021/4/22 11:28
 */

@FeignClient(name="xiaohong-chat-mq",contextId = "sent")
public interface MqSenderFeign {

    /**
     * 发送消息到mq
     * @param msg
     * @return
     */
    @GetMapping("/sent/chat")
    String send(@RequestParam String msg);

}
